Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 2 - 3D Viewer / 3D Viewer Reference
3D Viewer Routines / Getting Viewer Information


Q3ViewerGetDimension

You can use the Q3ViewerGetDimension function to get the current dimensions of the model space in a viewer's view hints object.

OSErr Q3ViewerGetDimension (
TQ3ViewerObject theViewer, 
unsigned long *width, 
unsigned long *height);
theViewer
A viewer object.
width
On exit, the width of the pane of the specified viewer.
height
On exit, the height of the pane of the specified viewer.
DESCRIPTION
The Q3ViewerGetDimension function returns, in the width and height parameters, the current width and height of the model space in the view hints object associated with the viewer object specified by the theViewer parameter. If there is no such view hints object, Q3ViewerGetDimension returns the width and height of the viewer pane.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996